//package com.youzan.cloud.common.config;
//
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
///**
// * @author tangsen233
// * @version 1.0
// * @description: 和springmvc的webmvc拦截配置一样
// * @date 2021/12/13 19:12
// */
//@Configuration
//public class WebConfigurer implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        // 拦截所有请求，通过判断是否有 @Oauth 注解 决定是否需要登录
//        registry.addInterceptor(AuthorityInterceptor()).addPathPatterns("/**");
//    }
//
//
//    @Bean
//    public AuthorityInterceptor AuthorityInterceptor() {
//        return new AuthorityInterceptor();
//    }
//}